import Command from "./command"

export class OpenDrawerCommand extends Command {}
OpenDrawerCommand.id = "OPEN_DRAWER"
export class CloseDrawerCommand extends Command {}
CloseDrawerCommand.id = "CLOSE_DRAWER"
export class PanelToggleCollapseCommand extends Command {
  constructor(collapse: any) {
    super()
    this.payload = { collapse }
  }
}
PanelToggleCollapseCommand.id = "TOOL_PANEL_TOGGLE_COLLAPSE"
export class OpenHighlightReelCommand extends Command {}
OpenHighlightReelCommand.id = "OPEN_HIGHLIGHT_REEL"
export class OpenHlrSettingsCommand extends Command {
  constructor() {
    super(...arguments)
    this.id = "OPEN_HLR_SETTINGS"
  }
}
export class ToggleToolCommand extends Command {
  constructor(tool: any, active: any, open?: any) {
    super()
    this.payload = {
      tool,
      active,
      open: open || active
    }
  }
}
ToggleToolCommand.id = "TOGGLE_TOOL"
export class CloseAndRemoveToolsCommand extends Command {}
CloseAndRemoveToolsCommand.id = "CLOSE_REMOVE_TOOLS"
export class RegisterToolsCommand extends Command {
  constructor(tools: any) {
    super()
    this.payload = { tools }
  }
}
RegisterToolsCommand.id = "REGISTER_TOOLS"
